<template>
  <div >
    <div class="navs">首页</div>
    <div>
    <el-carousel :interval="5000"  arrow="always" >
      <el-carousel-item v-for="item in 4" :key="item" >
        <!-- <router-link to="/my">{{ item }}</router-link> -->
      </el-carousel-item>
    </el-carousel>
    </div>
    <div class="mores">
      <span>列表</span>
      <span><router-link to="/about">查看更多</router-link></span>
    </div>
    <!-- <div class="shuzu" v-for="item in list">
      <span >{{item.title}}</span>
      <span >{{item.authors}}</span>
    </div> -->
  </div>
</template>

<script>
// import axios from 'axios';
// import {loginCheckss} from '../service/api'
export default {
  name: 'home',
  data () {
    return {
      phone: '',
      password: ''
      // list: [
      //   {
      //     id: 1,
      //     title: '声乐',
      //     authors: 'james wo'
      //   },
      //   {
      //     id: 2,
      //     title: '管弦乐',
      //     authors: 'james1'
      //   }
      // ]
    }
  },
  components: {
  },
  methods: {
  }
}
</script>

<style scoped>
*{
    margin:0;
    padding:0;
}
.navs{
  width:100%;
  height:1rem;
  background: pink;
  font-size: .35rem;
  line-height: 1rem;
}
.el-carousel__item:nth-child(2n) {
    width:100%;
    height:4rem;
    background-color: lightgray;
    background-image: url("../assets/er3.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.el-carousel__item:nth-child(2n+1) {
    width:100%;
    height:4rem;
    background-color: lightgray;
    background-image: url("../assets/long.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
</style>
